package com.fw.utils;

import java.util.Random;
import java.util.UUID;

public class MyUtils {
    public static final char[] chars= {'1','2','3','4','5','6','7','8','9','0','Q','W','E','R','T','Y','U','I','O',
            'P','A','S','D','F','G','H','J','K','L','Z','X','C','V','B','N','M'};
    public static String getRandomString(){
        Random random = new Random();
        StringBuffer sb = new StringBuffer();
        for(int i = 0; i <= 5; i++)
            sb.append(chars[random.nextInt(chars.length)]);
        return sb.toString();
    }
    public static String getUUIDWithoutLine(){
        String id = UUID.randomUUID().toString();
        id = id.replaceAll("-", "");
        return id;
    }
}
